<%@ taglib uri="/webwork" prefix="ww"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<script language="javascript" type="text/javascript">
var registration = function(){
	var loginame = document.getElementById("user.loginName").value;
	if(String.isNull(loginame)){
		alert('<ww:text name="user.loginName.null"/>');
		return;
	}
	var username = document.getElementById("user.userName").value;
	if(String.isNull(username)){
		alert('<ww:text name="user.userName.null"/>');
		return;
	}
	var password = document.getElementById("user.password").value;
	if(String.isNull(password)){
		alert('<ww:text name="user.password.null"/>');
		return;
	}
	var repassword = document.getElementById("repassword").value;
	if(String.isNull(repassword)){
		alert('<ww:text name="user.repassword.null"/>');
		return;
	}
	if(repassword!=password){
		alert('<ww:text name="user.password.notEqual"/>');
		return;
	}
	var email = document.getElementById("user.email").value;
	if(String.isNull(email)){
		alert('<ww:text name="user.email.null"/>');
		return;
	}
	document.getElementById("saveNewUser").submit();
}
</script>